﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sfcms_editplaceholdercontents.aspx.cs" Inherits="sfcms_sfcms_editplaceholdercontents" %>

<html>
<head>
    <title>Easy Web Editor (EWE)</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">

    <script language="JScript">
        function onLoad()
        {
            var ewe = new EWE(null, '');
            if (ewe.IsValidBrowser() == false)
            {
                alert('You require IE 5.5+ to run this editor');
            }
            else
            {
                ewe.load(document.getElementById("eweContainer"), window.dialogArguments);
            }
        }
        var editorPath = "/web/sfcms/ewe/";
        
        function save()
        {
            isCancel = false;
            if (ViewCurrent == 2) toggleView();
            window.returnValue = cleanup(document.all.ewe.innerHTML);
            window.onbeforeunload = null;
            self.close();
        }
        
        var isCancel = false;
        
        window.onbeforeunload = function()
        {
            window.returnValue = window.dialogArguments;
            return "Your changes will be lost. Do you want to continue?";
        }
        
    </script>

    <script language="JScript" src="/web/sfcms/ewe/source/ewe.js"></script>

</head>
<body bgcolor="#FFFFFF" onload="onLoad();" onkeydown="dispatcher();"">
    <table width="100%">
        <tr>
            <td width="50%">&nbsp;</td>
            <td>
                <div id="eweContainer" unselectable="on" runat="server">
                </div>
                <div id="eweInitialContent" unselectable="on" runat="server" style="display:none;">
                </div>
            </td>
            <td width="50%">&nbsp;</td>
        </tr>
    </table>
    <input type="hidden" id="editedContent" runat="server" />
</body>
</html>
